import DirectionSubStateMachine from '../../Base/DirectionSubStateMachine'
import { DIRECTION_ENUM } from '../../Enum'
import State from '../../Base/State'
import { StateMachine } from '../../Base/StateMachine'

const BASE_URL = 'texture/player/death'

export default class DeathSubStateMachine extends DirectionSubStateMachine {
    constructor(fsm: StateMachine) {
        super(fsm)
        this.stateMachines.set(DIRECTION_ENUM.TOP, new State(fsm, `${BASE_URL}/top`))
        this.stateMachines.set(DIRECTION_ENUM.BOTTOM, new State(fsm, `${BASE_URL}/bottom`))
        this.stateMachines.set(DIRECTION_ENUM.LEFT, new State(fsm, `${BASE_URL}/left`))
        this.stateMachines.set(DIRECTION_ENUM.RIGHT, new State(fsm, `${BASE_URL}/right`))
    }
}